package com.big.model.model.merchandise;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
@ApiModel(description = "优惠方式规则")
@TableName("merchandise_offers")
public class MerchandiseOffers {

    @ApiModelProperty(value = "商品编号")
    @TableField("m_id")
    private String mId;

    @ApiModelProperty(value = "数据字典(优惠方式)")
    @TableField("offer_code")
    private Integer offerCode;

    @ApiModelProperty(value = "优惠规则")
    @TableField("full_reduction_rules")
    private double fullReductionRules;

    @ApiModelProperty(value = "优惠程度")
    @TableField("full_reduction_deduction")
    private double fullReductionDeduction;

    @ApiModelProperty(value = "其他参数")
    @TableField(exist = false)
    private Map<String,Object> param = new HashMap<>();

}
